package com.bicon.botu.medical.common.constant

import com.bicon.botu.medical.model.entity.User
import kotlin.math.pow

object Constant {

    const val WEIGHT = "weight"
    const val HEIGHT = "height"
    const val AGE_30_ABOVE = "30岁以上"
    const val AGE_30_UNDER = "30岁以下"

    @JvmStatic
    fun main(args: Array<String>) {
        val user = User(weight = 86.0, height = 178.0)

        val bmi = (user.height?.div(100))?.pow(2)?.let { user.weight?.div(it) }

        println(bmi)
    }
}